/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

.admin-layout {
  display: flex;
  min-height: calc(100vh - 150px);
}

.admin-sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 20px;
}

.admin-sidebar h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #34495e;
}

.admin-nav-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 0;
  margin: 5px 0;
  border-radius: 4px;
  transition: all 0.3s;
}

.admin-nav-link:hover {
  background-color: #34495e;
  padding-left: 10px;
}

.admin-content {
  flex-grow: 1;
  padding: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-table th, 
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e1e1e1;
}

.admin-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background-color: #f5f5f5;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.admin-btn:hover {
  background-color: #45a049;
}

.admin-btn-danger {
  background-color: #dc3545;
}

.admin-btn-danger:hover {
  background-color: #c82333;
}

.admin-btn-edit {
  background-color: #007bff;
}

.admin-btn-edit:hover {
  background-color: #0069d9;
}